<template>
  <div class="task-view-chart">
    <iframe class="task-chart-iframe" :src="baseUrl"></iframe>
  </div>
</template>

<script>
// import { mapGetters } from 'vuex'
export default {
  data () {
    return {
      baseUrl: `${process.env.VUE_APP_SERVERURL}/grafana/dashboard/db/joblevelmetrics?var-job=${this.$route.query.taskname}&refresh=30s&orgId=1`
    }
  }
}
</script>

<style lang="stylus" scoped>
.task-view-chart
  .task-chart-iframe
    width 100%
    height 700px
</style>
